package com.lgy.model;

import lombok.Data;
import org.apache.solr.client.solrj.beans.Field;
import org.springframework.data.solr.core.mapping.SolrDocument;

import java.io.Serializable;

@Data
@SolrDocument(collection = "myDemo")
public class User implements Serializable {
    @Field("id")
    private String id;
    @Field("item_name")
    private String name;
    @Field("item_sex")
    private String sex;
    @Field("item_address")
    private String address;
    @Field("item_host")
    private Integer host;

}
